#ifndef __DATE_H__
#define __DATE_H__ 

#include "main.h"

typedef struct
{
    uint8_t year;
    uint8_t month;
    uint8_t day;
    uint8_t hour;
    uint8_t minute;
    uint8_t second;
}Date_t;

//备份域寄存器宏定义 
#define RTC_BKP_REG     RTC_BKP_DR0

#define RTC_BKP_DATA    0xA5A5

void date_init(void);
void date_get(Date_t *date);
void date_print(void);


#endif
